﻿<!DOCTYPE html>
<html lang="en">
<head th:replace="~{parts/head}">

<!-- page wrapper -->
<body>

    <div class="boxed_wrapper">

        <!-- preloader -->
        <div class="preloader"></div>
        <!-- preloader -->


        <!-- main header -->
        <header class="main-header style-three">

            <!-- header-lower -->
            <div class="header-lower">
                <div class="outer-box clearfix">
                    <div class="left-column">
                        <div class="logo-box">
                            <figure class="logo"><a href="/"><img src="../../images/logo-3.png" alt=""></a></figure>
                        </div>
                        <div th:replace="~{parts/menu-area}">
                        </div>
                        <div class="right-column pull-right">
                            <div th:replace="~{parts/author-box}">
                            </div>
                        </div>
                    </div>

                    <!--sticky Header-->
                    <div class="sticky-header">
                        <div class="auto-container">
                            <div class="outer-box">
                                <div class="logo-box">
                                    <figure class="logo"><a href="/"><img src="../../images/small-logo.png" alt=""></a></figure>
                                </div>
                                <div class="menu-area">
                                    <nav class="main-menu clearfix">
                                        <!--Keep This Empty / Menu will come through Javascript-->
                                    </nav>
                                </div>
                                <!--                        <div class="btn-box"><a href="register-page.html" class="theme-btn-one"><i class="icon-image"></i>Join Now</a></div>-->
                            </div>
                        </div>
                    </div>
        </header>
        <!-- main-header end -->

        <!-- Mobile Menu  -->
        <div class="mobile-menu">
            <div class="menu-backdrop"></div>
            <div class="close-btn"><i class="fas fa-times"></i></div>
            
            <nav class="menu-box">
                <div class="nav-logo"><a href="/"><img src="../../images/logo-2.png" alt="" title=""></a></div>
                <div class="menu-outer"><!--Here Menu Will Come Automatically Via Javascript / Same Menu as in Header--></div>
                <div class="contact-info">
                    <h4>Contact Info</h4>
                    <ul>
                        <li>Chicago 12, Melborne City, USA</li>
                        <li><a href="">+88 01682648101</a></li>
                        <li><a href="mailto:info@example.com">info@example.com</a></li>
                    </ul>
                </div>
                <div class="social-links">
                    <ul class="clearfix">
                        <li><a href="/"><span class="fab fa-twitter"></span></a></li>
                        <li><a href="/"><span class="fab fa-facebook-square"></span></a></li>
                        <li><a href="/"><span class="fab fa-pinterest-p"></span></a></li>
                        <li><a href="/"><span class="fab fa-instagram"></span></a></li>
                        <li><a href="/"><span class="fab fa-youtube"></span></a></li>
                    </ul>
                </div>
            </nav>
        </div><!-- End Mobile Menu -->


        <!--page-title-two-->
        <section class="page-title-two">
            <div class="title-box centred bg-color-2">
                <div class="pattern-layer">
                    <div class="pattern-1" style="background-image: url(../../images/shape/shape-70.png);"></div>
                    <div class="pattern-2" style="background-image: url(../../images/shape/shape-71.png);"></div>
                </div>
                <div class="auto-container">
                    <div class="title">
                        <h1>信息反馈</h1>
                    </div>
                </div>
            </div>
            <div class="lower-content">
                <div class="auto-container">
                    <ul class="bread-crumb clearfix">
                        <li><a href="/">主页</a></li>
                        <li><a style="cursor: pointer" onclick="window.history.back(-1);">上一页</a></li>
                        <li>信息反馈</li>
                    </ul>
                </div>
            </div>
        </section>
        <!--page-title-two end-->


        <!-- submit-review -->
        <section class="submit-review bg-color-3">
            <div class="pattern">
                <div class="pattern-1" style="background-image: url(../../images/shape/shape-85.png);"></div>
                <div class="pattern-2" style="background-image: url(../../images/shape/shape-86.png);"></div>
            </div>
            <div class="auto-container">
                <div class="review-box">
                    <div class="content-box">
                        <div class="title-inner">
                            <h3>写下您的信息反馈</h3>
                            <p>信息反馈</p>
                        </div>
                        <div class="content-inner">
<!--                            <div class="rating-box">-->
<!--                                <h4>Overall Rating</h4>-->
<!--                                <ul class="rating clearfix">-->
<!--                                    <li><i class="icon-Star-2"></i></li>-->
<!--                                    <li><i class="icon-Star-2"></i></li>-->
<!--                                    <li><i class="icon-Star-2"></i></li>-->
<!--                                    <li><i class="icon-Star-2"></i></li>-->
<!--                                    <li><i class="icon-Star-2"></i></li>-->
<!--                                </ul>-->
<!--                            </div>-->
                            <div class="form-inner">
                                <div class="row clearfix">
                                    <div class="col-lg-12 col-md-12 col-sm-12 form-group">
                                        <label>标题</label>
                                        <input type="text" id="title" name="title" placeholder="标题" required="">
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12 form-group">
                                        <label>内容</label>
                                        <textarea id="content" name="content" placeholder="写下您的反馈..."></textarea>
                                    </div>
                                    <!--                                        <div class="col-lg-12 col-md-12 col-sm-12 form-group">-->
                                    <!--                                            <div class="custom-controls-stacked">-->
                                    <!--                                                <label class="custom-control material-checkbox">-->
                                    <!--                                                    <input type="checkbox" class="material-control-input">-->
                                    <!--                                                    <span class="material-control-indicator"></span>-->
                                    <!--                                                    <span class="description">I accept <a href="submit.html">terms</a> and <a href="submit.html">conditions</a> and general policy</span>-->
                                    <!--                                                </label>-->
                                    <!--                                            </div>-->
                                    <!--                                        </div>-->
                                    <div class="col-lg-12 col-md-12 col-sm-12 form-group message-btn">
                                        <button onclick="save()" class="theme-btn-one">提交反馈<i class="icon-Arrow-Right"></i></button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- submit-review end -->


        <!-- agent-section -->
        <section class="agent-section bg-color-3">
            <div class="auto-container">
                <div class="inner-container bg-color-2">
                    <div th:replace="~{parts/agent-section}"></div>
                </div>
            </div>
        </section>
        <!-- agent-section -->


        <!-- main-footer -->
        <div th:replace="~{parts/main-footer}"></div>
        <!-- main-footer end -->
        <div th:replace="~{parts/alert-modal}"></div>

        <!--Scroll to top-->
        <button class="scroll-top scroll-to-target" data-target="html" onclick='location.href=("/message?targetId=6")'>
            <img src="../../images/robot-2.png">
        </button>
    </div>
    <script th:replace="~{parts/js}"></script>
    <script>
        $('#about_tab').addClass("current");
        function save() {
            $.ajax({
                type: "post",
                url:"/feedback/submit/save",
                cache: false,
                data: {
                    title: $('#title').val(),
                    content: $('#content').val()
                },
                success: function (data) {
                    if (data.state === "success") {
                        $('#sendSuccessModal').modal('show');
                    }
                },
                error: function(res) {
                    $('#sendFailModal').modal('show');
                }
            });
        }
    </script>
    <style>
        .submit-review .review-box .content-inner .form-inner {
            padding-top: 0;
        }
    </style>

</body><!-- End of .page_wrapper -->
</html>
